<?php
// +----------------------------------------------------------------------
// | Author: yaoyihong <510974211@qq.com>
// +----------------------------------------------------------------------

namespace app\common\validate;
use Think\Db;
/**
 * 提现验证器
 */
class CashOutLog extends ValidateBase
{
	// 验证规则
    protected $rule = [
        'name'              => 'require',
        'phone'             => 'require',
        'account'           => 'require',
        'money'             => 'require',
        'branch'            => 'require'
    ];

    // 验证提示
    protected $message = [
        'name.require'      => '真实姓名必须',
        'phone.require'     => '手机号码必须',
        'account.require'   => '账号必须',
        'money.require'     => '提现金额必须',
        'branch.require'    => '具体运行必须'
    ];

    // 应用场景
    protected $scene = [
        'wechat'  =>  ['name','phone','account'],
        'alipay'  =>  ['name','phone','account'],
        'bankcard'  =>  ['name','phone','account','branch'],
    ];
}
